#ifndef MAINWINDOW1_H
#define MAINWINDOW1_H

#include <QMainWindow>
#include<QString>
#include<QDebug>
#include<QStandardItemModel>
#include"mystyleditemdelegate.h"
#include"databaseop.h"
#include <QtNetwork>
#include<QNetworkAccessManager>
#include<QNetworkRequest>
#include<QNetworkReply>
#include<QJsonDocument>
#include<QSqlQueryModel>
#include<QMessageBox>

namespace Ui {
class MainWindow1;
}

class MainWindow1 : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow1(QWidget *parent = nullptr);
    ~MainWindow1();

    void parseJson(QByteArray byteArray);
public slots:
    void replyFinished(QNetworkReply *reply);
private slots:
    void on_pushButton_clicked();

private:
    Ui::MainWindow1 *ui;
    databaseop* mydatabase;
    QNetworkAccessManager * manager;
};

#endif // MAINWINDOW1_H
